{% extends 'user/base.html' %}           {% load static %}
{% block content %}
    {% load bootstrap %}
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>修改密码 | ***.</h2>
        </div>
        <div class="col-lg-2">
        </div>
    </div>

    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="ibox float-e-margins">
                <div id="ibox-content" class="ibox-title">
                    <h5> 修改密码 </h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="fa fa-wrench"></i>
                        </a>

                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

            <div class="col-md-6 col-md-offset-3">
            <div class="ibox-content">
                    {% if form.errors %}
                        <div class="alert alert-block alert-danger">
                            请确认帐号是否存在或其它选项是否已填写
                        </div>
                    {% endif %}
                    <form class="form-horizontal" method="post" action="{% url 'user_change_passsword' %}"
                          role="form">{% csrf_token %}
                        {{ form| bootstrap_horizontal }}
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-5">
                                <button class="btn btn-white" type="submit"> 重置</button>
                                <button class="btn btn-primary" type="submit"> 提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

            </div>
        </div>
    </div>

{% endblock content %}
